README for installing, configuring and updating DarkRulerz repack


Things you need to make this work:
DarkRulerz repack full version (grap the latest one, currently 1.3 but 1.6 is 
comming soon)
any update files later than the full pack,if you have the 1.3 full you need 
the updates 1.4 and 1.5
winrar (or any other archive tool)
sqlyog ( or any other sql interface prg like navicat, heidisql and others)
and if you dont want to extract the map, vmaps and buildings yourself then 
you need the map pack as well


INSTALLING:

make a folder on any drive you like and call it what ever you like, but through
the rest of this readme ill assume that we are using drive C: and a folder called darkrulerzserver.

extract the full pack file to c:\darkrulerzserver

in the darkrulerzserver folder there should now be 4 new folders called mangos, 
SQL options, tools and xampp

now you either have to use the program in the tool folder to extract the map, 
vmaps and buildings from your wow install you do this by copying the programs 
from the tool folder to your wow install folder and running them one by one, 
starting with AD.exe then makevmapssimple.bat 
OR 
you extract the map archive if you downloaded that.

once the map files are extracted copy them to c:\darkrulerzserver\mangos\

next you need to look in c:\darkrulerzserver\xampp and find this file setup_xampp.bat, 
run it and answer the questions it asks, the default answer is normaly enough so 
you can just press return to all of them, once it has located the files 
and folders it needs to work you get a message (something like : done press return 
to continue), press return and then just exit by pressing x

now you need to start mySQL from the control panel (start the control panel first 
thou, its located in the xampp folder and is called xampp-control.exe) once the control panel shows mySQL as 
running your almost ready to play, but only almost as we need to do some configuring.

UPGRADING:

you can skip this section if you have the latest full pack and there is no update 
files.

if you have the full 1.3 you need the update 1.4 and 1.5 files for the next part 
as well as the sql interface program of your choise.

start by unpacking all the upgrade files you have, then look in the folder of the 
first upgrade file.
as an example we will look at the upgrade file to upgrade from 1.3 to 1.4.

go to the folder where you extracted the upgrade file (might be something like 
this c:\serverupgrades or just the name of the upgrade file like c:\1.4 update archive)

in the folder you will find 2 folders and possible a few files (any sql files there 
we will use later)
first open the autoimporter folder, in there you will find 1 folder and 1 file, and 
its the file we want to start the upgrade so run that and UNLESS you changed 
anything just press enter to all questions it asks (it will ask for database
host, name, password and some of the database tables) once you have answered all the 
questions it will start importing all the update files into the database with 
out you having to mess with anything.

the only problem with the autoimporter is that it stops before it is done importing 
all the sql files
so you need to close the program when it seems to be stuck, then go into the database 
folder (in the same folder as the autoupdater) and then into the world folder, 
now delete all the update files from the start untill the one before the 
autoupdater got stuck, then go back and run the autoupdater again and when it once 
again gets stuck repeate the steps you did before to delete the update files 
that has already been importet by the autoupdater and restart the autoupdater again.
it need to be started 3 times to have all the update files importet.

just a little recap of the autoimporter steps:
1. run autoimporter
2. close when stuck
3. delete files untill the one before it got stuck
4. do step 1 again
5. do step 2 again
6. do step 3 again
7. do step 1 again
8. do step 2 again
9. do step 3 again
so thats 3 times the autoimporter gets started (hope they fix the bug so we only 
needs to run it once)

so now we are almost done updating.

next we need to import the last few sql files like the one you probberly noticed in 
the folder with the autoimporter and sql options folder so start up your sql 
interface program of choise and connect to the database with the correct 
user name and password

user name : root
password : mangos

once your connected you should see the different parts of the database (characters, 
mangos, mysql, realmd and scriptdev2 (yes there are a few more but you dont need those)

now from the update folder select the sql files you want to add and import them to the 
right database part in your sql program, and rember to import the scriptdev2.sql as well
(located in the same place as the sqloptions folder and autoimporter folder)

the only optional sql file you need is the autobroadcast, but you might want to add a few more
like the auctionhousebot.

once your done importing the sql files there is only one thing missing and thats the core folder
and the files in it.

select them all and copy them to your c:\darkrulerzserver\mangos\ folder and overwrite the old files

thats it.



CONFIGURING SETTINGS AND NETWORK OPTIONS:


the first thing you need to do is deside a few things :

1. will the server be on the same computer that you will be playing from
2. will the server be on another computer in your local network
3. do you want to let other people play on the server (both local network and internet players)

when you have desided we are ready to procede, in this readme ill try and give you all 3 options

1. If you want to host the server on the same computer as you play on then your done already and
only need to edit your realmlist.wtf (look below for info on what to do)

2. if you host on another computer on your local network, you will need to make some changes in your 
database, so open your sql gui of choise and connect with :

user : root
password : mangos

go to the realmd part of the database and open the table list and find the realmlist table
if you look at that you should see that it at the moment only has one entry with the IP 127.0.0.1,
that we need to change to the host machine's IP (your LAN is probberly setup to use the 10.x.x.x IP range
or the 192.x.x.x IP range) 

IMPORTENT NOTE : make sure you use fixed IP on your lan, or at least on the host, otherwise you have to keep
changing the realmlist to fit the current IP

ill assume that your using the 10.x.x.x IP range (if not just use the one your using)

in your sql gui select "alter table" and add your host machines IP so that the realmlist now has 2 entry's
one with the 127.0.0.1 and one with the 10.0.0.x (if your using sqlyog its easier to just click on the last line 
in the realmlist table and type your host ip there, insted of selecting alter table)

thats it... save the table and exit the sql gui and then you just need to change the realmlist.wtf in your wow folder
(look below for info on how to do that)

3. if you want to let others play on the server (outside users connecting thru the internet) then you just have to 
change the 127.0.0.1 to your global IP (the one your ISP os giving you), but if you want to play on it as well as host
for internet users you will need to have 2 entry's

so do the same steps as in option 2. except insted of leaving the 127.0.0.1 in there you change that to your global IP
so you have 2 entry's in your realmlist one with the 10.0.0.x and one with 200.200.200.200 (<-- fake ip used as an example)
and then save the table and exit the sql gui

done ... almost ...

last thing for all 3 options :

go to your wow folder ... in there you have a data folder .. open that and you should have your localized folder in there
either enUS or enGB os what ever your local version uses

so open that and find the realmlist.wtf file
open it with notepad (default program in every windows version from way back in windows 3.1 so you have it im sure)

now the first to lines in the wtf file is what we are after
the first one is the realmlist (should be something like eu.worldofwarcraftblablabla) delete everything in that line after 
realmlist and put the IP you used above in it

the second line is the patch server and that you change to the IP you used above as well

save the file and your done.

go play :)

but you better start the evoxlogon and evoxworld first ;)

and if the server crash at startup look in the server.log file for the answer to why it did it



more to come about the mangos.conf file in the next readme


credits to Darkrulerz for the repack
salja and evo-x team for the evo-x development
Altavus for typing all this ;)